package com.company.cloud.user.modules.api.request;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.util.Set;

@Getter
@Setter
public class PermissionUpdateRequest extends BaseParam {


    @ApiModelProperty(value = "权限编号" ,required = true)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @ApiModelProperty(value = "权限名称",required = true)
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "菜单显示名称")
    private String showName;

    @ApiModelProperty(value = "菜单显示图标")
    private String icon;

    @ApiModelProperty(value = "菜单路由")
    private String url;

    @ApiModelProperty(value = "菜单状态" ,required = true)
    @NotEmpty(message = "状态不能为空")
    private String state= BaseConstant.YNEnum.YES.getCode();

    @ApiModelProperty(value = "菜单顺序")
    private Integer orders=0;

    @ApiModelProperty(value = "菜单显示平台")
    private String showPlatform;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "资源")
    private Set<String> resource;



    @ApiModelProperty(value = "操作人用户ID")
    private Integer opUserId;

    @ApiModelProperty(value = "操作人操作IP")
    private String opIp;

}
